package cz.muni.fi.pv168.ContactManager;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Vlado
 * Date: 4.3.2012
 * Time: 17:26
 * To change this template use File | Settings | File Templates.
 */
public interface PersonManager {
    public Person createPerson(Person person) throws SQLException;
    public void deletePerson(Person person);
    public void updatePerson(Person person);
    public Person findPersonById(Long id);
    public List<Person> findPersonsByFirstName(String firstName);
    public List<Person> findPersonsByLastName(String lastName);
    public List<Person> findAllPersons();
}
